package week3;

import java.util.Scanner;

public class q1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("您的身高是:(单位，m)");
        double height=sc.nextDouble();
        System.out.println("您的体重是:(单位，kg)");
        double weight=sc.nextDouble();
        double bmi=weight / (height * height);
        System.out.println("您的BMI值是:" +bmi);
        if(bmi<18.5) {
            System.out.println("偏瘦");
        }else if(bmi<23.9) {
            System.out.println("正常");
        }else if(bmi<27.9) {
            System.out.println("稍微偏重");
        }else {
            System.out.println("超重");
        }
    }
}
